@extends('_layouts.blank')

@section('breadcrumb-button')
<li class="btn-group">
    <button class="btn green" id="btn-new"><i class="fa fa-bookmark"></i> {{ $iCurrentCourse }}</button>
</li>
@stop

@section('page-content')
@foreach ($aClasses as $oClasses )
{{--*/
$aUser = $oClasses->user()->whereRaw('hocluc < 5 or chuyencan < 5')->get(array ( 'username' ));
if (!count($aUser)) continue;
/*--}}
<!-- BEGIN Portlet PORTLET-->
{{--*/ $items = ['blue','green','yellow','red','purple']; /*--}}
<div class="portlet box {{$items[array_rand($items)]}}">
    <div class="portlet-title">
        <div class="caption">
            {{ $oClasses->generateClassName(true) }}
        </div>
        <div class="tools">
            <a href="javascript:;" class="collapse"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="table-responsive table-content">
            <table class="table table-bordered table-hover">
                <thead>
                    <tr>
                        <th>{{ trans('user.username') }}</th>
                        <th class="text-center">{{ trans('navigation.mornitor.attendance') }}</th>
                        <th class="text-center">{{ trans('navigation.mornitor.score') }}</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($aUser as $User )
                    <tr>
                        <td>
                            {{$User->username}}
                        </td>
                        <td class="text-center">
                            {{(float)$User->pivot->chuyencan}}
                        </td>
                        <td class="text-center">
                            {{(float)$User->pivot->hocluc}}
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- END Portlet PORTLET-->
@endforeach
@stop